<div class="col-md-15">
    <form id="basicForm" action="__APP__/Home/Qx/addqx" method="post" class="form-horizontal">
        <div class="panel panel-default">
            <div class="panel-heading">
                <div class="panel-btns">
                    <a href="" class="panel-close">&times;</a>
                    <a href="" class="minimize">&minus;</a>
                </div>
                <h4 class="panel-title">假期去向登记</h4>
                <p style="color: red;">务必认真填写，回家的需要写清楚回哪里。旅游的写清楚去哪里旅游，去玩的也得写清楚去哪玩。做兼职写清楚去哪做</p>
            </div>
            <div class="panel-body">
                <div class="form-group">
                    <label class="col-sm-3 control-label">学生名字 <span class="asterisk">*</span></label>
                    <div class="col-sm-9">
                        <input type="text" name="name" class="form-control" placeholder="请输入你的名字..." value="{$_SESSION['dataInfo']['name']}" required disabled/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">假期去向 <span class="asterisk">*</span></label>
                    <div class="col-sm-9">
                        <input type="text" name="address" class="form-control" placeholder="务必写清楚去哪回哪..." required minlength="4" />
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">联系人 <span class="asterisk">*</span></label>
                    <div class="col-sm-9">
                        <input type="text" name="contacts" class="form-control" placeholder="请输入联系人的名字..." required />
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">联系电话 <span class="asterisk">*</span></label>
                    <div class="col-sm-9">
                        <input type="number" name="tel" class="form-control" placeholder="请输入联系人的电话号码..." required />
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">离校时间 <span class="asterisk">*</span></label>
                    <div class="col-sm-9">
                        <!--<input type="date" name="ltime" class="form-control" required />-->
                        <div class="input-group">
                            <input type="text" class="form-control" name="ltime" placeholder="yy-mm-dd 离校时间" id="datepicker" onfocus="this.blur();">
                            <span class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></span>
                        </div>
                    </div>


                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">返校时间 <span class="asterisk">*</span></label>
                    <div class="col-sm-9">
                        <!--<input type="date" name="btime" class="form-control" required />-->
                        <div class="input-group">
                            <input type="text" class="form-control" name="btime" placeholder="yy-mm-dd 返校时间" id="datepicker2" onfocus="this.blur();">
                            <span class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></span>
                        </div>
                    </div>
                </div>

            </div><!-- panel-body -->
            <div class="panel-footer">
                <div class="row">
                    <div class="col-sm-9 col-sm-offset-3">
                        <button class="btn btn-primary" type="submit">提交</button>
                        <button type="reset" class="btn btn-default">重新填写</button>
                    </div>
                </div>
            </div>

        </div><!-- panel -->
    </form>

    <p class="text-primary">下面可以左右滚动</p>
    <div class="table-responsive">
        <table class="table table-success mb30">
            <thead>
            <tr>
                <th>#</th>
                <th>姓名</th>
                <th>假期去向</th>
                <th>联系人</th>
                <th>联系电话</th>
                <th>离校时间</th>
                <th>返校时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <volist name="qxinfo" id="vo">
                <tr>
                    <td>{$i}</td>
                    <td>{$vo.name}</td>
                    <td>{$vo.address}</td>
                    <td>{$vo.contacts}</td>
                    <td>{$vo.tel}</td>
                    <td>{$vo.ltime}</td>
                    <td>{$vo.btime}</td>
                    <td>
                        <if condition="$vo.name eq $_SESSION['dataInfo']['name']"><a class="btn btn-danger" onclick= "if(confirm( '是否确定！ ')==false)return   false; " href="__APP__/Home/Qx/delqx?id={$vo.id}">删除</a> <a class="btn btn-info" href="__APP__/Home/Qx/updateqx?id={$vo.id}">修改</a>
                            <else /> 只能修改本人的信息
                        </if>
                    </td>
                </tr>
            </volist>
            </tbody>
        </table>
    </div>


</div>

